package com.yc.pre.entity.bean;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @ClassName PreRolePermission
 * @Description 角色权限关联实体
 * @Date 2021/02/08 14:39:51
 * @Created by ccc-j
 * @email ccc-ju@outlook.com
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "试标库角色权限")
public class PreRolePermission {

    @ApiModelProperty(value = "ID")
    private Long id;

    @ApiModelProperty(value = "角色ID")
    private Long roleId;

    @ApiModelProperty(value = "权限ID")
    private Long permissionId;

    @ApiModelProperty(value = "是否删除（0：未删除，1：已删除）")
    private Integer isDeleted;

    @ApiModelProperty(value = "创建时间")
    @JSONField(format = "yyyy-MM-dd hh:MM:ss")
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @JSONField(format = "yyyy-MM-dd hh:MM:ss")
    private Date gmtModify;

    @ApiModelProperty(value = "删除时间")
    @JSONField(format = "yyyy-MM-dd hh:MM:ss")
    private Date gmtDeleted;
}
